package cn.tedu.ezhaung_project.controller;


import cn.tedu.ezhaung_project.mapper.ProductCategoryMapper;
import cn.tedu.ezhaung_project.pojo.vo.ProductCategorySelectVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/productCategory/")
public class ProductCategoryController {
    @Autowired(required = false)
    ProductCategoryMapper mapper;
    @RequestMapping("select")
    public List<ProductCategorySelectVO> select(){
        return mapper.select();
    }
}
